package com.ruoyi.system.domain.bo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 充值请求对象
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="充值请求对象", description="充值请求对象")
public class UserRechargeRequest implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "充值金额")
    @NotNull(message = "充值金额不能为空")
    private BigDecimal price;

    @ApiModelProperty(value = "支付方式 0 = 微信，1 = 支付宝")
    @NotNull(message = "支付方式不能为空")
    private String payType;

    @ApiModelProperty(value = "客户端ip")
    @JsonIgnore
    private String clientIp;

    @ApiModelProperty(value = "用户id")
    @JsonIgnore
    private Integer userId;

    @ApiModelProperty(value = "赠送金额")
    @JsonIgnore
    private BigDecimal givePrice;

    @ApiModelProperty(value = "充值订单号")
    private String orderNo;

    @ApiModelProperty(value = "充值标题")
    private String title;
}
